export default {

    // 获取屏幕尺寸
    win(isPx = false) {
        let width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
        let height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;

        return isPx ? { width: width + 'px', height: height + 'px' } : { width, height };
    }
    
}